//
//  emptItem.m
//  SoundPill
//
//  Created by 宋鹏鹏 on 15/3/30.
//  Copyright (c) 2015年 宋旭东. All rights reserved.
//

#import "emptItem.h"

#define kDeviceHeight [UIScreen mainScreen].bounds.size.height
#define kDeviceWidth  [UIScreen mainScreen].bounds.size.width

#define kTitleScale 0.7
// 设置宽高
#define kMenuItemW kDeviceWidth*0.1
#define kMenuItemH 36

@implementation emptItem
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        // 3.上边的分割线
        UIImage *upImg = [UIImage imageNamed:@"gray_line"];
        UIImageView *updivider = [[UIImageView alloc] initWithImage:upImg];
        updivider.bounds = CGRectMake(0, 0, kMenuItemW, 0.5);
        updivider.center = CGPointMake(kMenuItemW/2, 0);
        //[self addSubview:updivider];
        
        // 3.下边的分割线
        UIImage *downImg = [UIImage imageNamed:@"gray_line"];
        UIImageView *downDivider = [[UIImageView alloc] initWithImage:downImg];
        downDivider.bounds = CGRectMake(0,0, kMenuItemW, 1 );
        downDivider.center = CGPointMake(kMenuItemW/2, kMenuItemH-0.5);
       // [self addSubview:downDivider];
        
        
        
    }
    return self;
}

- (void)setFrame:(CGRect)frame
{
    frame.size = CGSizeMake(kMenuItemW, kMenuItemH);
    [super setFrame:frame];
}

@end
